<template>
  <!-- 一个不带功能的按钮组件 -->
  <div>
    <a><button class="btn blue">{{ value }}</button></a>
  </div>
</template>
<script>
export default {
  props: ["value"],
  data() {
    return {};
  },
  methods: {},
};
</script>
<style scoped>
.btn.blue {
  border: 4px solid #0279b0;
  color: #0279b0;
}
.btn {
  z-index: 100;
  overflow: hidden;
  background: transparent;
  position: relative;
  padding: 8px 50px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1em;
  letter-spacing: 2px;
  -webkit-transition: 0.2s ease;
  transition: 0.2s ease;
  font-weight: bold;
  margin: 5px 0px;
}
.btn.blue:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  height: 100%;
  background: #0279b0;
  z-index: -1;
  -webkit-transition: 0.2s ease;
  transition: 0.2s ease;
}
.btn.blue:hover {
  color: white;
  background: #0279b0;
  -webkit-transition: 0.2s ease;
  transition: 0.2s ease;
}
.btn.blue:hover:before {
  width: 100%;
}
</style>
